<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.tianxiabuyi.utils.ErrcodeUtil" %>
<%@ page import="com.tianxiabuyi.utils.LabelUtil" %>
<%@ page import="java.util.List" %>
<%@ include file="/common/validate.jsp"%>
<%
    // 请求全部标签
    Integer labelCategory = input.getInt("label_category", LabelUtil.ZERO);
    List<Map> labelList = LabelUtil.getLabel(hospital, labelCategory);
    if (labelList == null || labelList.isEmpty()) {
        ErrcodeUtil.setErrcode(msg, ErrcodeUtil.NO_RESULT);
    } else {
        msg.put("data", labelList);
    }
    Tools.encryptPrint(out, msg);
%>